package priv.yiyuan.example.design.wrapper;

/**
 * 牛奶
 * <p>
 * 具体装饰器
 *
 * @author YiYuan
 * @data 2025/9/1
 * @apoNote
 */
public class MilkDecorator extends CondimentDecorator {

    public MilkDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + ", 加牛奶";
    }

    @Override
    public double getCost() {
        return coffee.getCost() + 2.0;
    }
}
